package com.bpmn.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bpmn.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author rain
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_tenant")
@Schema(description = "租户信息")
public class SysTenant extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private String id;

    @NotBlank(message = "租户名称不能为空")
    @Schema(description = "租户名称")
    private String name;

    @NotBlank(message = "租户AppID不能为空")
    @Schema(description = "租户AppID")
    private String appId;

    @NotBlank(message = "AppSecret不能为空")
    @Schema(description = "租户AppSecret")
    private String appSecret;

    @NotBlank(message = "管理员账号不能为空")
    @Schema(description = "管理员账号")
    private String adminUsername;

    @Schema(description = "管理员密码")
    private String adminPassword;

    @Schema(description = "状态（0停用 1正常）")
    private Integer status;

}